package com.bjb.vr.common.dto;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 设备连接记录表
 *
 * @TableName res_dev_login_record
 */
@TableName(value = "res_dev_login_record")
@Data
public class ResDevLoginRecord extends BaseModel implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 数据ID用于同步
     */
    @TableField(value = "data_id")
    private Long dataId;

    /**
     * 设备唯一标识
     */
    @TableField(value = "udid")
    private String udid;

    /**
     * 设备连接时间
     */
    @TableField(value = "dev_login_time")
    private LocalDateTime devLoginTime;

    /**
     * 设备断开连接时间
     */
    @TableField(value = "dev_logout_time")
    private LocalDateTime devLogoutTime;

    /**
     * 设备连接日期
     */
    @TableField(value = "dev_login_date")
    private LocalDate devLoginDate;

    /**
     * 设备本次连接时间(单位秒)
     */
    @TableField(value = "dev_use_time")
    private Double devUseTime;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private LocalDateTime gmtModified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
